/**
 * 司机表(Driver)接口
 *
 * @author wuzongbin
 * @since 2024-12-26 00:33:40
 */

import request from '@/utils/request'

export const DriverApi = {
    /**
     *  插入
     * @returns
     */
    create: (data) => {
        return request({
            url: '/manage/user/driver/create',
            data,
            method: 'post'
        })
    },

    /**
     *  更新
     * @returns
     */
    edit: (data) => {
        return request({
            url: '/manage/user/driver/edit',
            data,
            method: 'post'
        })
    },

    /**
     *  查询详细
     * @returns
     */
    load: (id) => {
        return request({
            url: '/manage/user/driver/load',
            params: {id},
            method: 'get'
        })
    },

    /**
     *  分页
     * @returns
     */
    getPage: (data) => {
        return request({
            url: '/manage/user/driver/getPage',
            data,
            method: 'post'
        })
    },

    /**
     *  查询列表
     * @returns
     */
    getList: (data) => {
        return request({
            url: '/manage/user/driver/getList',
            data,
            method: 'post'
        })
    },

    /**
     *  删除
     * @returns
     */
    delete: (id) => {
        return request({
            url: '/manage/user/driver/delete',
            params: {id},
            method: 'get'
        })
    }
}

